/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.cput.ac.concepts.inherit.inheritviolation.impl;

/**
 *
 * @author Ilyaas Khatib
 */
public class InheirtViolation {
    
    public static void main(String[] args) {
        Parent p = new Parent();
        Child c = new Child();
        p.setBlood("A");
        c.setBlood(p.getBlood());
        p.setColour("Brown");
        c.setColour(p.getColour());
        System.out.println("My child inheirted my "+c.getColour()+ " hair and my " + c.getBlood() +" blood type.");
    }
}
